<?php
define('PROJECT_ROOT', __DIR__ . '/../');
define('REST_PHP_VERSION', '3.1');
define('DIR_LIB', PROJECT_ROOT . 'lib');
define('DIR_RESTPHP', PROJECT_ROOT . 'src');
define('DIR_BUILD', PROJECT_ROOT . 'test/php');
define('DIR_BUILD_TARGET', PROJECT_ROOT . 'test/runtime/target');
define('HTTP_VERSION', '1.1');
define('CONTENT_TYPE', 'application/json');
define('SYS_TIME', time());
define('SYS_MICRO_TIME', microtime(true));

//require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../src/Rest.php';

//spl_autoload_register(array('restphp\core\RestLoad','load'));

// 构建
\restphp\Rest::build();